kill -9 `lsof -t -i:8080`
git reset --hard
git pull

sed -i 's/profile\: .*/profile\: \/root\/devs\/uploadPath/g' ruoyi-admin/src/main/resources/application-dev.yml
sed -i 's/password:.*/password: 123456/g' ruoyi-admin/src/main/resources/application-dev.yml
sed -i 's/jdbc:mysql:\/\/.*\/ry3/jdbc:mysql:\/\/127.0.0.1:16033\/ry3/g' ruoyi-admin/src/main/resources/application-dev.yml
# sed -i -e 's/.*target.*/        target: `http:\/\/xayauran.com:8080`,/g' ruoyi-ui/vue.config.js
sed -i -e 's/.*property name="log.path".*/        \<property name="log.path" value="\/root\/devs\/logs" \/\>/g' ruoyi-admin/src/main/resources/logback.xml

sed -i -e "s/    host:'http:\/\/.*:8080'.*/    host:'http:\/\/xayaruan.com:8080',/g" ruoyi-ui/src/views/labbase/instrumentation/index.vue

sed -i -e "s/VUE_APP_PROXY = http:\/\/localhost:8080/VUE_APP_PROXY = http:\/\/xayaruan.com:8080/g" ruoyi-ui/.env.development
sed -i -e "s/VUE_APP_PROXY = http:\/\/localhost:8080/VUE_APP_PROXY = http:\/\/xayaruan.com:8080/g" ruoyi-ui/.env.production

mvn clean package -Dmaven.test.skip=true 



nohup java -jar ruoyi-admin/target/ruoyi-admin.jar &

sed -i 's/南京邮电大学/测试学校/g' ./ruoyi-ui/src/views/login.vue
sed -i 's/login_logo/login_logo2/g' ./ruoyi-ui/src/views/login.vue
sed -i 's/85866668/11223344/g' ./ruoyi-ui/src/views/login.vue
sed -i 's/top_bg.jpg/top_bg.png/g' ./ruoyi-ui/src/views/mainItem/Navtitle.vue
cd ruoyi-ui
npm run build:prod &
cd ..

sleep 5
cp -r html-docs ruoyi-ui/dist
